package com.jifen.agent.vo;
/**
 * 类名：MarketVo
 * 作者：zhangtao
 * 日期：2019/5/27 15:47
 * 版本：1.0.0
 * 描述：TODO
 **/
import com.jifen.config.Global;
import org.apache.commons.lang3.StringUtils;

public class MarketVo {

    private Integer id;

    private String name;

    private String head;

    private String admin;

    private int todayInJifen;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHead() {
        if(StringUtils.isNotBlank(head)){
            return Global.getConfig("cdnUrl") + head;
        }
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getAdmin() {
        return admin;
    }

    public void setAdmin(String admin) {
        this.admin = admin;
    }

    public int getTodayInJifen() {
        return todayInJifen;
    }

    public void setTodayInJifen(int todayInJifen) {
        this.todayInJifen = todayInJifen;
    }
}
